@charset "utf-8";

.head{
    width: 100%;
    height: 48px;
    background: #333;
    .h_box{
        width: 1080px;
        height: 100%;
        margin: 0 auto;
        .h_box_r{
            text-align: right;
            div{
                display: inline-block;
                height: 48px;
                line-height: 48px;
                padding: 0 8px;
                font-size: 14px;
                a{
                    color: #e7e7e7;
                }
            }
            span{
                display: inline-block;
                border-left: 1px solid #666;
                height: 16px;
                vertical-align: middle;
            }
            .h_box_r1{
                position: relative;
                a{
                    margin-left: 8px;
                    &:hover{
                        color: #fff;
                    }
                }
                // 后面写入，登录之后使用的
                .i1{
                    font-size: 24px;
                    padding: 3px;
                    vertical-align: middle;
                    text-align: center;
                }
                .i2{
                    font-size: 14px;
                    padding: 8px;
                    color: #e7e7e7;
                    vertical-align: middle;
                    text-align: center;
                }
                a{
                    font-size: 14px;
                    color: #e7e7e7;
                }
                #logindexHeatActive{
                    position: absolute;
                    top: 48px;
                    left: 50%;
                    transform: translateX(-50%);
                    z-index: 10;
                    height: 210px;
                    line-height: 0;
                    display: none;
                    z-index: 1000;
                    ul{
                        background: #fff;
                        text-align: center;
                        box-shadow: 0 0 10px 1px rgba($color: #777, $alpha: 0.5);
                        li{
                            height: 35px;
                            width: 80px;
                            padding: 0 10px;
                            display: inline-block;
                            line-height: 35px;
                            margin-top: -10px;
                            color: #666;
                            font-size: 14px;
                            margin: 0;
                            cursor: pointer;
                            &:hover{
                                background: #845f3f;
                                color: #fff;
                            }
                        }
                    }
                }

                // 结束
            }
            .h_box_r3 {
                padding: 0 8px 0 1px;
                i{
                    font-size: 20px;
                    padding: 5px;
                    vertical-align: middle; 
                }
            }
            .h_box_r4 {
                padding: 0 8px 0 8px;
                position: relative;
                &:hover .box_r4_a{
                    color: #fff;
                }
                &:hover .h_box_r4_list{
                    display: block;
                }
                i{
                    font-size: 14px;
                    padding: 8px;
                    vertical-align: middle; 
                }
                /* 导航栏的隐藏列表 */
                .h_box_r4_list{
                    position: absolute;
                    width: 150px;
                    top: 48px;
                    left: 0;
                    background: #fff;
                    color: #333;
                    box-shadow: 0px 3px 10px 0.2px #eee;
                    display: none;
                    li{
                        cursor: pointer;
                        text-align: center;
                        height: 35px;
                        line-height: 35px;
                        a{
                            color: #666;
                        }
                        &:hover{
                            background: #845f3f;
                            a{color: #fff;}
                        }
                    }
                }
            }
            .h_box_r2,.h_box_r3 {
                cursor: pointer;
                &:hover a{
                    color: #fff;
                }
            } 
        }
    }
}
// 搜索框
.search{
    width: 1080px;
    height: 51px;
    padding-top: 30px;
    padding-bottom: 5px;
    margin: 0 auto;
    background: #fff;
    z-index: 999;
    // position: relative;
    .search_none{
        float: left;
        width: 60px;
        height: 51px;
        padding: 0 70px 0 10px;
        position: relative;
        .search_none_box{
            width: 48px;
            height: 24px;
            border: 1px solid #efefef;
            margin-top: 13px;
            padding: 0 5px;
            cursor: pointer;
            display: none;
            span{
                font-size: 14px;
                color: #333;
            }
            i{
                font-size: 14px;
            }
        }
        // 隐藏菜单栏
        
        .search_list{
            position: absolute;
            top: 52px;
            width: 221px;
            height: 338px;
            padding: 10px 0;
            background: #845f3f;
            float: left;
            cursor: pointer;
            display: none;
            z-index: 99;
            .search_list_box{
                li{
                    width: 161px;
                    height: 37px;
                    padding: 0 30px;
                    line-height: 37px;
                    color: #fff;
                    font-size: 14px;
                    &:hover{
                        background: rgba($color: #222, $alpha: 0.5);
                    }
                    a{
                        color: #fff;
                        &:hover{
                            color: #bb7f3f;
                        }
                    }
                }
            }
            
            // 隐藏菜单栏
            /*  *********************** */
            .search_list_active{
                width: 859px;
                height: 358px;
                background: #fff;
                position: absolute;
                top: 0;
                left: 221px;
                z-index: 20;
                overflow-y: auto;
                display: none;
                .search_listact_box{
                    width: 780px;
                    padding: 20px 30px;
                    p{
                        font-size: 14px;
                        color: #333;
                    }
                    ul{
    
                        li{
                            width: 195px;
                            height: 40px;
                            margin-bottom: 30px;
                            float: left;
                            &:hover span{
                                color: #845f3f;
                            }
                            img{
                                width: 40px;
                                height: 40px;
                                margin-right: 10px;
                                display: block;
                                float: left;
                            }
                            span{
                                display: block;
                                line-height: 40px;
                                color: #333;
                                font-size: 14px;
                                float: left;
                            }
                        }
                    }
                }
            }
        }


    }
    .search_logo{
        float: left;
        width: 123px;
        height: 51px;
        cursor: pointer;
        img{
            display: block;
            width: 123px;
            height: 51px;
        }
    }
    .search_buy{
        float: left;
        line-height: 51px;
        height: 51px;
        font-size: 18px;
        color: #666;
        cursor: pointer;
    }
    .search_box{
        float: right;
        width: 281px;
        height: 42px;
        border-bottom: 1px solid #e7e7e7;
        &:hover {
            border-bottom: 1px solid #845f3f;
        }

        i{
            font-size: 20px;
            padding: 5px;
            vertical-align: bottom;
            &:hover{
                color: #845f3f;
            }
        }
        div{
            display: inline-block;
            width: 245px;
            height: 35px;
            input{
                width: 245px;
                height: 18px;
                margin-top: 15px;
                border: 0;
            }
        }
    }
    p{
        float: right;
        width: 30px;
        height: 30px;
        text-align: center;
        margin-top: 16px;
        margin-left: 6px;
        &:hover{
            color: #845f3f;
        }
        i{
            font-size: 20px;
        }
    }
}


// 购物车
.content{
    width: 100%;
    .content_bar{
        width: 1080px;
        height: 17px;
        padding: 30px 0 ;
        margin: 0 auto;
        a:nth-child(1){
            color: #000;
            font-size: 13px;
        }
        a:nth-child(3){
            color: #999;
            font-size: 13px;
        }
    }
    .content_nogoods{
        width: 1080px;
        margin: 0 auto;
        height: 239px;
        padding: 100px 0 200px 0 ;
        .content_nogoods_img{
            width: 100%;
            height: 175px;
            div{
                width: 153px;
                height: 132px;
                background: url("https://shop.io.mi-img.com/static/h5/static3/media/no-cart.c8984abd.png") no-repeat;
                background-size:100% ;
                margin: 0 auto;
            }
            p{
                margin-top: 24px;
                width: 100%;
                height: 9px;
                color: #333;
                font-size: 14px;
                text-align: center;
            }
        }
        .content_nogoods_keep{
            height: 43px;
            margin-top: 21px;
            width: 100%;
            div{
                width: 83px;
                height: 41px;
                border: 1px solid #666;
                padding: 0 6px;
                color: #666;
                font-size: 18px;
                margin: 0 auto;
                text-align: center;
                line-height: 41px;
                cursor: pointer;
                &:hover{
                    background: #845f3f;
                    border-color: #845f3f;
                    color: #fff;
                }
            }
        }
    }
     // 当有物品时候才显示
    .content_goods{
        width: 1080px;
        margin: 0 auto;
        display: none;
        .content_goods_title{
            width: 100%;
            height: 42px;
            margin-bottom: 3px;
            background: #fafafa;
            font-size:0 ;
            i{
                display: inline-block;
                width: 16px;
                height: 16px;
                margin: 0 20px 0 7px;
                border-radius: 50%;
                border: 1px solid #999;
                margin-bottom: -3px;
            }
            span{
                color: #999;
                font-size: 14px;
                display: inline-block;
                height: 40px;
                line-height: 40px;
            }
            span:nth-child(2){
                width: 130px;
            }
            span:nth-child(3){
                width: 325px;
            }
            span:nth-child(4){
                width: 205px;
            }
            span:nth-child(5){
                width: 208px;
            }
            span:nth-child(6){
                width: 129px;
            }
            span:nth-child(7){
                width: 28px;
            }
        }
        .content_bigbox{
            width: 1080px;
            margin: 0 auto;
            padding-bottom:100px ;
            .content_goods_shop{
                width: 100%;
                height: 19px;
                padding: 47px 0 17px 0 ;
                border-bottom: 1px solid #e7e7e7;
                font-size: 0;
                i{
                    display: inline-block;
                    width: 16px;
                    height: 16px;
                    margin: 0 20px 0 7px;
                    border-radius: 50%;
                    border: 1px solid #999;
                    margin-bottom: -3px;
                }
                span:nth-child(2){
                    display: inline-block;
                    margin-left: 10px;
                    width: 130px;
                    color: #333;
                    font-size: 14px;
                }
                span:nth-child(3){
                    float: right;
                    display: inline-block;
                    margin-left: 10px;
                    color: #999;
                    font-size: 14px;
                    span{
                        display: inline-block;
                        width: 15px;
                        height: 15px ;
                        border: 1px solid #e7e7e7;
                        border-radius: 50%;
                        margin-right: 5px;
                        color: #999;
                        font-size: 14px;
                        text-align: center;
                        vertical-align: text-bottom;
                    }
                }
            }
            .content_goods_discount{
                width: 1035px;
                margin: 20px auto 0 auto;
                font-size: 0;
                span{
                    display: inline-block;
    
                }
                span:nth-child(1){
                    background: #c00000;
                    color: #fff;
                    font-size: 12px;
                    padding: 0 5px;
                    width: 24px;
                    height: 20px;
                    margin-right: 10px;
                    line-height: 20px;
                }
                span:nth-child(2){
                    color: #999;
                    font-size: 14px;
                    height: 20px;
                    line-height: 20px;
                }
                span:nth-child(3){
                    color: #c00000;
                    font-size: 14px;
                    height: 20px;
                    line-height: 20px;
                    margin-left: 15px;
                }
            }
            .content_goods_box{
                width: 100%;
                height: 142px;
                border-bottom: 1px solid #e7e7e7;
                div{
                    float: left;
                }
                .content_goodsbox_select{
                    width: 45px;
                    height: 72px;
                    padding: 35px 0;
                    i{
                        display: inline-block;
                        width: 16px;
                        height: 16px;
                        margin: 23px 20px 0 7px;
                        border-radius: 50%;
                        border: 1px solid #999;
                        // line-height: 72px;
                    }
                }
                .content_goodsbox_img{
                    width: 120px;
                    height: 142px;
                    img{
                        display: block;
                        width: 120px;
                        height: 120px;
                    }
                }
                .content_goodsbox_title{
                    width: 235px;
                    height: 88px;
                    padding: 27px 90px 27px 5px ;
                    p{
                        color: #333;
                        font-size: 14px;
                        line-height: 24px;                        
                    }
                }
                .content_goodsbox_price{
                    width: 215px;
                    height: 72px;
                    padding: 35px 0;
                    span{
                        font-size:14px ;
                        color: #333;
                        line-height: 72px;
                    }
                }
                .content_goodsbox_num{
                    width: 205px;
                    height: 72px;
                    padding: 35px 0;
                    .content_goodsbox_num_box{
                        width: 260px;
                        height: 72px;
                        margin-left: -55px;
                        .reduceBtn{
                            width: 30px;
                            height: 30px;
                            border: 1px solid #b3b3b3;
                            font-size: 20px;
                            color: #b3b3b3;
                            float: left;
                            line-height: 30px;
                            text-align: center;
                            cursor: pointer;
                            margin-top:18px ;
                        }
                        div:nth-child(2){
                            line-height: 30px;
                            text-align: center;
                            width: 70px;
                            height: 30px;
                            border: 1px solid #b3b3b3;
                            border-left: 0;
                            border-right: 0;
                            font-size: 16px;
                            color: #b3b3b3;
                            float: left;
                            margin-top:18px ;
                        }
                        .addBtn{
                            width: 30px;
                            height: 30px;
                            border: 1px solid #b3b3b3;
                            font-size: 18px;
                            color: #845f3f;
                            float: left;
                            line-height: 30px;
                            text-align: center;
                            cursor: pointer;
                            margin-top:18px ;
                        }

                    }
                }

                .content_goodsbox_allprice{
                    width: 130px;
                    height: 72px;
                    padding: 35px 0 ;
                    span{
                        font-size: 14px;
                        color: #c00000;
                        line-height: 72px;
                    }
                }
                .content_goodsbox_del{
                    width: 13px;
                    height: 72px;
                    padding: 35px 0 ;
                    i{
                        display: inline-block;
                        line-height: 72px;
                        color: #b3b3b3;
                        font-size: 18px;
                        cursor: pointer;
                        text-align: center;
                    }
                }

            }
        }
        .content_Total{
            width: 1080px;
            height: 80px;
            margin-bottom: 160px;
            .content_Total_goodsnum{
                float: left;
                height: 30px;
                padding: 25px 0 ;
                i{
                    display: inline-block;
                    width: 16px;
                    height: 16px;
                    margin: 0px 20px 0 7px;
                    border-radius: 50%;
                    border: 1px solid #999;
                    vertical-align: text-top;
                }
                span{
                    color: #333;
                    font-size: 18px;
                    line-height: 30px;
                }
                #goodsnum{
                    margin-left: 20px;
                }
            }
            .content_Total_goodsmoney{
                float: right;
                height: 55px;
                padding-top: 25px;
                span{
                    font-size: 20px;
                    color: #333;
                }
                #goodsmoney{
                    color: #c00000;
                }
            }
            #settlement{
                float: right;
                width: 200px;
                height: 80px;
                background: #e7e7e7;
                margin-left: 30px;
                text-align: center;
                line-height: 80px;
                color: #fff;
                font-size: 20px;
                cursor: no-drop;
            }
        }
        
    }




}



// 页角
.foot{
    width: 100%;
    margin-top:60px ;
    border-top: 1px solid #e7e7e7;
    .foot_box{
        width: 1080px;
        margin: 0 auto;
        padding-top: 45px;
        height: 92px;
        .foot_box_l{
            float: left;
            width: 123px;
            height: 45px;
            img{
                display: block;
                width: 123px;
                height: 45px;
            }
        }
        .foot_box_r{
            float: right;
            .foot_box_rl{
                float: left;
                span{
                    color: #666;
                    font-size: 12px;
                }
                a{
                    color: #666;
                    font-size: 12px;
                }
                p{
                    height: 23px;
                    line-height: 23px;
                    color: #666;
                    font-size: 12px;
                    vertical-align: middle;
                    span{
                        margin-right: 5px;
                    }
                    a{
                        margin-right: 5px;
                    }
                }

                p:nth-child(1){
                    span{
                        margin-right: 5px;
                    }
                    img{
                        display: inline-block;
                        width: 15px;
                        height: 15px;
                        vertical-align: middle;
                    }
                }
            }
            .foot_box_rr{
                float: right;
                width: 100px;
                height: 36px;
                padding-left: 30px;
                img{
                    display: block;
                    width: 100px;
                    height: 36px;
                }
            }
        }
    }
}

// 定位导航
.flxedbar{
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    box-shadow: 0 0 30px 1px rgba($color: #7e7e7e, $alpha: 0.5);
    .flxedbar_box{
        padding: 0 5px;
        li{
            width: 50px;
            height: 50px;
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid #e7e7e7;
            &:hover{
                color: #a92112;
            }
            &:hover p{
                color: #a92112;
            }
            i{
                display: block;
                width: 30px;
                height: 30px;
                margin: 0 auto;
                font-size: 26px;
            }
            p{
                color: #333;
                font-size: 12px;
            }
        }
        .flxedbar_box_last{
            border-bottom: 0;
        }
    }
}


// 选择按钮加样式
.active{
    background: #845f3f;
}
// 给选择按钮加鼠标样式
.selectGoods{
    cursor: pointer;
}




